package demo3;

/**
 * 2023/7/12 19:39
 **/
public class Director extends Employee {
    private double transportationAllowance;

    public Director(String name, String address, double baseSalary, double transportationAllowance) {
        super(name, address, baseSalary);
        this.transportationAllowance = transportationAllowance;
    }

    public double getTransportationAllowance() {
        return transportationAllowance;
    }

    public void setTransportationAllowance(double transportationAllowance) {
        this.transportationAllowance = transportationAllowance;
    }

    @Override
    public void show() {
        super.show();
        System.out.println("Transportation Allowance: " + transportationAllowance);
    }
}